<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>
        {% block title %}首页{% endblock %}
    </title>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.6.2/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.6.2/js/bootstrap.min.js"></script>
    <!-- 引入 layui.css -->
    <link rel="stylesheet" href="//unpkg.com/layui@2.7.6/dist/css/layui.css">
    <!-- 引入 layui.js -->
    <script src="//unpkg.com/layui@2.7.6/dist/layui.js"></script>

</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark c">
    <a class="navbar-brand" href="#">图书管理系统</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>

    <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav mr-auto">
            <li class="nav-item active">
                <a class="nav-link" href="#">图书<span class="sr-only">(current)</span></a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#">作者</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="#">出版社</a>
            </li>
            <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-expanded="false">
                    更多选项
                </a>
                <div class="dropdown-menu">
                    <a class="dropdown-item" href="#">图书</a>
                    <a class="dropdown-item" href="#">作者</a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item" href="#">出版社</a>
                </div>
            </li>
        </ul>
        <form class="form-inline my-2 my-lg-0">
            <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
            <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
        </form>
    </div>
</nav>
<div class="container-fluid mt-3" style="padding-right: 30px">
    <div class="row">
        <div class="col-2">
            <div class="list-group">
                {% block nav-list %}
                    <a href="/" class="list-group-item list-group-item-action border-info bg-info text-white">首页</a>
                    <a href="/book/list" class="list-group-item list-group-item-action">图书列表</a>
                    <a href="/author/list" class="list-group-item list-group-item-action">作者列表</a>
                    <a href="/publish/list" class="list-group-item list-group-item-action">出版社列表</a>
                    <a class="list-group-item list-group-item-action disabled">更多</a>
                {% endblock %}
            </div>
        </div>
        <div class="col-10 border border-info rounded p-0 ">
            <div class="border-bottom p-2 border-info text-white bg-info">
                <h3>
                    {% block content-title %}
                        Welcome!
                    {% endblock %}
                </h3>
            </div>
            <div class="m-3">
                {% block content %}
                    <div class="jumbotron">
                        <h1 class="display-4">欢迎使用亚洲最大的线上图书平台！</h1>
                        <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra
                            attention to featured content or information.</p>
                        <hr class="my-4">
                        <p>It uses utility classes for typography and spacing to space content out within the larger
                            container.</p>
                        <a class="btn btn-info btn-lg" href="#" role="button">Learn more</a>
                    </div>
                {% endblock %}
            </div>
        </div>
    </div>
</div>
</body>
{% block js %}
{% endblock %}
</html>